package vip.wangwenhao.page;

import java.io.Serializable;

/**
 * @author wangwenhao
 * @param <T>
 */
public class PageResult<T> implements Serializable {
    private static final long serialVersionUID = -300455228475131963L;

    private Integer pageNo;
    private Integer pageSize;
    private Integer totalCount;
    private T data;

    public PageResult() {
    }

    public PageResult(Integer pageNo, Integer pageSize, Integer totalCount, T data) {
        this.pageNo = pageNo;
        this.pageSize = pageSize;
        this.totalCount = totalCount;
        this.data = data;
    }

    public Integer getPageNo() {
        return pageNo;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(Integer totalCount) {
        this.totalCount = totalCount;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

}